package com.traffic.between.redis;

public class RedisLockKit {

	/**
	 * 是否执行
	 * 
	 * @param lockKey
	 * @return
	 */
	public static boolean isLock(String lockKey) {
		if (RedisKit.incrByOne(lockKey) == 1) {
			RedisKit.expireTenMin(lockKey);
			return false;
		}
		return true;
	}

}
